package day01;

/**
 * @author feng
 * @Date 2021/10/13 8:21
 */
public class RunnableTest implements Runnable {
    @Override
    public void run() {
        System.out.println("==" + Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        //传入参数
        RunnableTest runnableTest = new RunnableTest();
        //创建实例
        Thread t1 = new Thread(runnableTest);
        t1.setName("t1");
        Thread t2 = new Thread(runnableTest);
        t2.setName("t2");
        t1.start();
        t2.start();

    }


}
